﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace 代理模式
{
   public class ProxySubject: ISubject
    {

        private ISubject _RealSubject = new RealSubject();

    

        /// <summary>
        /// 
        /// </summary>
        public bool GetSomething()
        {
            return this._RealSubject.GetSomething();
        }

        /// <summary>
        /// 
        /// </summary>
        public void DoSomething()
        {
            this._RealSubject.DoSomething();
        }
    }
}
